#!/usr/bin/env bash

dir=$(pwd)
ls | while read -r line; do
  fileDir=${dir}/$line
  if [ -d "$fileDir""/.git" ]; then
    echo "pull start ================$line====================="
    cd "$fileDir" && git pull
    echo "pull end ==================$line====================="
    echo -e "\n"
  fi
done
